package tech.xs.common.util.pattern;

import java.util.regex.Pattern;

/**
 * 常用正则
 *
 * @author 沈家文
 * @since 2023/6/21$ 15:53$
 */
public class CommonPattern {

    /**
     * 数字字母,最多128个字符
     */
    public static final Pattern NUMERIC_LETTER_128 = Pattern.compile("^[A-Za-z\\d]{0,128}$");

    /**
     * 数字字母,最多32个字符
     */
    public static final Pattern NUMERIC_LETTER_32 = Pattern.compile("^[A-Za-z\\d]{0,32}$");

    /**
     * 手机号验证正则
     */
    public static final Pattern PHONE = Pattern.compile("^1[3-9]\\d{9}$");
}
